package com.xintouyun.medicine.service.impl;

import com.xintoucloud.jdbcutil.JdbcUtil;
import com.xintouyun.medicine.dao.GoodsAttentionDao;
import com.xintouyun.medicine.entity.GoodsAttention;
import com.xintouyun.medicine.service.GoodsAttentionService;

public class GoodsAttentionServiceImpl implements GoodsAttentionService {

	@Override
	public boolean save(GoodsAttention goodsAttention) {
		try {
			GoodsAttentionDao goodsAttentionDao = new GoodsAttentionDao();
			return goodsAttentionDao.save(goodsAttention)>0;
		}finally {
			JdbcUtil.closeConnection();
		}
	}

}
